<?php
namespace Amis\form;
class InputKV extends FormItem
{
    public string $type = 'input-kv';

    /**
     * @param string $valueType 值类型
     * @return $this
     */
    public function valueType(string $valueType = 'input-text')
    {
        $this->valueType = $valueType;
        return $this;
    }

    public function keyPlaceholder(string $keyPlaceholder)
    {
        $this->keyPlaceholder = $keyPlaceholder;
        return $this;
    }

    public function valuePlaceholder(string $valuePlaceholder)
    {
        $this->valuePlaceholder = $valuePlaceholder;
        return $this;
    }

    public function draggable(bool $draggable = true)
    {
        $this->draggable = $draggable;
        return $this;
    }

    public function defaultValue($defaultValue)
    {
        $this->defaultValue = $defaultValue;
        return $this;
    }
}